package com.ruoyi.TimedTask.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 定时任务对象 timed_task
 *
 * @author zjh
 * @date 2022-04-30
 */

public class TimedTask extends BaseEntity
{

    private String beginTime;
    public String endTime;

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    private static final long serialVersionUID = 1L;

    /** 主鍵 */
    private Long taskId;

    /** 公司主鍵 */
    private Long companyId;

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date taskDate;

    /** 时间 */
//    @Excel(name = "时间")
    private String taskTime;

    public String getNormalTemp() {
        return normalTemp;
    }

    public void setNormalTemp(String normalTemp) {
        this.normalTemp = normalTemp;
    }

    /** 温度 */
    @Excel(name = "温度")
    private String normalTemp;

    public String getNormalHum() {
        return normalHum;
    }

    public void setNormalHum(String normalHum) {
        this.normalHum = normalHum;
    }

    /** 湿度 */
    @Excel(name = "湿度")
    private String normalHum;

    /** 记录人 */
    @Excel(name = "记录人")
    private String recordBy;

    public String getCorporateRepresentative() {
        return corporateRepresentative;
    }

    public void setCorporateRepresentative(String corporateRepresentative) {
        this.corporateRepresentative = corporateRepresentative;
    }

    /**
     * 法人代表
     */
    private String corporateRepresentative;

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setTaskDate(Date taskDate)
    {
        this.taskDate = taskDate;
    }

    public Date getTaskDate()
    {
        return taskDate;
    }
    public void setTaskTime(String taskTime)
    {
        this.taskTime = taskTime;
    }

    public String getTaskTime()
    {
        return taskTime;
    }

    public void setRecordBy(String recordBy)
    {
        this.recordBy = recordBy;
    }

    public String getRecordBy()
    {
        return recordBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("companyId", getCompanyId())
                .append("corporateRepresentative", getCorporateRepresentative())
                .append("taskId", getTaskId())
                .append("taskDate", getTaskDate())
                .append("taskTime", getTaskTime())
                .append("normalTemp", getNormalTemp())
                .append("normalHum", getNormalHum())
                .append("recordBy", getRecordBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
